const gulp = require("gulp");
const babel = require("gulp-babel");
const path = require("path");
const ts = require("gulp-typescript");
const cwd = process.cwd()

const tsProject = ts.createProject(path.resolve(cwd,'./tsconfig.json'));

function build() {
  return gulp
    .src(path.resolve(cwd,"./src/**/*.{ts,tsx}"))
    .pipe(tsProject())
    .pipe(gulp.dest(path.resolve(cwd,"./es")));
}
function dev(){
  
}
module.exports = {
  build,
  dev
};
